package team.lourd.network.system.batch.ext.support;

import team.lourd.network.system.batch.ext.ConditionAnalyser;
import team.lourd.network.system.batch.ext.ConditionExecutor;

/**
 * 条件处理器 - 建造类
 *
 * @author JADemo
 * @date 2019/2/18 14:24
 */
public class ConditionExecutorBuilder {
    // 通过分割符建造出条件执行器
    public static ConditionExecutor build(String logicSymbol) {
        ConditionAnalyser analyser = ConditionAnalyserBuilder.build(logicSymbol);
        LogicConditionExecutor executor = new LogicConditionExecutor();
        executor.setAnalyser(analyser);
        return executor;
    }
}
